package bingo.component.amchart.graphics.pie;

import java.util.ArrayList;
import java.util.List;

import bingo.component.amchart.graphics.BaseGraphic;

/**
 * Jun 24, 2008 4:14:41 PM
 * Author:yangdongyu(yangdy@bingosoft.net)
 * ReadMe:饼状图
 * ChangeLog:
 */
public class Pie  extends BaseGraphic{
	private List<Slice> sliceList = new ArrayList<Slice>();

	/**
	 * @return the sliceList
	 */
	public List<Slice> getSliceList() {
		return sliceList;
	}
	/**
	 * add slice
	 * @param child
	 * @return
	 */
	public Pie addSlice(Slice child){
		this.sliceList.add(child);
		return this;
	}

	/**
	 * @param sliceList the sliceList to set
	 */
	public void setSliceList(List<Slice> sliceList) {
		this.sliceList = sliceList;
	}
	
	public GraphicType getGraphicType() {
		return GraphicType.pie;
	}
	
	public boolean isRootElement() {
		return true;
	}
	
	
}
